package cn.rumoss.ojcp.date;

import java.time.LocalDate;
import java.time.format.DateTimeFormatter;

/**
 * @ClassName LocalDateTest
 * @Description //TODO
 * @Author HeCG
 * @Date 19-3-25 上午9:57
 */
public class LocalDateTest {

    public static void main(String[] args) {

       /* LocalDate date1 = LocalDate.now();
        System.out.println(date1);
        LocalDate date2 = LocalDate.of(2014, 6, 20);
        System.out.println(date2);
        LocalDate date3 = LocalDate.parse("2014-06-20", DateTimeFormatter.ISO_DATE);
        System.out.println(date3);*/

       String date = LocalDate.parse("2019-03-27")
               //.format(DateTimeFormatter.ISO_DATE_TIME);
               .format(DateTimeFormatter.ISO_DATE);
        System.out.println(date);

    }

}
